package com.itheima.mall.service.omsService;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.itheima.mall.service.omsService.OmsOrderOperateHistoryApi;
import com.itheima.mall.mapper.omsMapper.OmsOrderOperateHistoryMapper;
import com.itheima.pojo.oms.OmsOrderOperateHistory;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@DubboService
public class OmsOrderOperateHistoryApiImpl implements OmsOrderOperateHistoryApi {
    @Autowired
    private OmsOrderOperateHistoryMapper mapper;

    @Override
    public List<OmsOrderOperateHistory> findById(Integer id) {
        LambdaQueryWrapper<OmsOrderOperateHistory> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(OmsOrderOperateHistory::getOrderId,id);
        return mapper.selectList(queryWrapper);
    }
}
